package com.netString;

public class TestReplace
{

	public static void main(String[] args) 
	{
		String str = "hello";
		
		str = str.substring(0, 2) + 'x' + str.substring(3);
 		

		 System.out.println(str);
	}

	private static void replace(String str, int index, char c)
	{
		
		StringBuilder sb = new StringBuilder(str);
		sb.setCharAt(2, c);
		
		System.out.println(sb);
	}

}
